package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 故障明细表
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BizExceptionLogParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Integer id;

    /**
     * 关联哪个故障
     */
    @NotNull(message = "关联哪个故障不能为空",groups = {add.class,edit.class})
    private Integer exceptionId;

    /**
     * 创建时间
     */
    private String createdAt;

    /**
     * 文件名
     */
    @NotNull(message = "文件名不能为空",groups = {add.class,edit.class})
    private String fileName;

    /**
     * 上报网关的通道
     */
    @NotNull(message = "上报网关的通道不能为空",groups = {add.class,edit.class})
    private String gatewayChannel;

    /**
     * 上报网关的编号
     */
    @NotNull(message = "上报网关的编号不能为空",groups = {add.class,edit.class})
    private String gatewayCode;

    private Date createTime;

    private Date exceptionTime;

    private String accessToken;

    private String voiceScore;
}
